package com.nbicc.news.service;

import com.nbicc.common.RequestPageObj;
import com.nbicc.common.ResponseObj;
import com.nbicc.news.po.NewsInfo;
import com.nbicc.news.vo.NewsPreviousNext;
import com.nbicc.parent.serivce.IBaseService;
import java.util.List;
import java.util.Map;
import java.util.Set;

public interface INewsInfoService extends IBaseService<NewsInfo> {

    ResponseObj find(RequestPageObj<Map<String, Object>> requestPageObj);

    /**
     * 按id批量查询
     * @param visitCountIds
     * @return
     */
    List<NewsInfo> selectBatchIds(Set visitCountIds);

    NewsPreviousNext getPreviousAndNext(int catId, long newsId);
}
